package com.cyq.day17.Demo3;

import java.time.LocalDate;

public class Reply extends Tip {
   private int replyId;//回复ID
   private int topicId;//主题ID

    public int getReplyId() {
        return replyId;
    }

    public void setReplyId(int replyId) {
        this.replyId = replyId;
    }

    public int getTopicId() {
        return topicId;
    }

    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    public Reply(String tittle, String content, String publishTime, int uid) {
        super(tittle, content, publishTime, uid);
    }

    public Reply() {
    }

    @Override
    public void getInfo() {
        super.getInfo();
        System.out.println("回复内容:"+"我早就会了");
        System.out.println("发表时间:"+ LocalDate.now().toString());
    }
}
